import Vue from 'vue'
import Vuex from 'vuex'
import userMessage from './userMessage'

import subject from './subject'
import home from './home'
import classification from './classification'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isShowPopupShow: false
  },
  mutations: {
    changeIsShowPopupShow(state, payload) {
      state.isShowPopupShow = payload
    }
  },
  actions: {},

    //模块:务必注册，各个小仓库切记别不注册，不注册就和没写没区别了
    modules: {
        userMessage,       
        subject ,
        home ,
        classification  
    }
  })
